package com.nl.model.exception;


import com.nl.model.consts.ConstPool;
import com.nl.model.consts.HttpStatusEnum;

/**
 * 未授权异常.
 *
 * @author breggor
 */
public class UnAuthorizedException extends RuntimeException {
    private static final long serialVersionUID = -49287562885361801L;

    public UnAuthorizedException(final String msg) {
        super(msg);
    }

    public UnAuthorizedException(final HttpStatusEnum status, final String msg) {
        super(status.getMessage() + ConstPool.COLON + msg);
    }
}
